package com.basic.sys.controller;


import com.alibaba.fastjson.JSON;
import com.basic.common.result.WebResult;
import com.basic.sys.domain.SelHisDataBo;
import com.basic.sys.service.HisDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 历史数据-管理
 */
@RestController
@RequestMapping(value = "/api/pressure")
public class HisDataController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    HisDataService hisDataService;

    /**
     *查询历史数据 全部列数据
     */
    @RequestMapping(value = "/selAllHisDataList")
    public WebResult selAllHisDataList(@RequestBody SelHisDataBo sel){
        logger.info(" ---------sel---------"+ JSON.toJSONString(sel));
        return hisDataService.selAllHisDataList(sel);
    }


}
